package com.zjhn.ds.domain.dto.mt;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @BelongsProject: ds_jlw
 * @BelongsPackage: com.zjhn.ds.domain.dto.pad
 * @Author: sxt
 * @CreateTime: 2023-09-22  10:05
 * @Description:
 * @Version: 1.0
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class GroupRelDto {

    @ApiModelProperty("绑定工位信息")
    @JsonProperty("station_list")
    private List<GroupStationDto> stationList;

    @ApiModelProperty("绑定员工信息")
    @JsonProperty("spinner_list")
    private List<GroupSpinnerDto> spinnerList;


    @Data
    @Builder
    @NoArgsConstructor
    @AllArgsConstructor
    public static class GroupStationDto {

        @ApiModelProperty("工位id")
        @JsonProperty("station_id")
        private String stationId;

        @ApiModelProperty("工位名称")
        @JsonProperty("station_name")
        private String stationName;

        @ApiModelProperty("工位编码")
        @JsonProperty("station_code")
        private String stationCode;

    }

    @Data
    @Builder
    @NoArgsConstructor
    @AllArgsConstructor
    public static class GroupSpinnerDto {

        @ApiModelProperty("挡车工id")
        @JsonProperty("spinner_id")
        private String spinnerId;

        @ApiModelProperty("员工姓名")
        @JsonProperty("real_name")
        private String realName;

    }

}
